package home

import (
	"github.com/gin-gonic/gin"
)

func RegisterRoutes(r *gin.Engine) {
	r.POST("/getVideo/", getVideo)
	r.GET("/reVideo/*filename", reVideo)
	r.GET("/getCover/*filename", getCover)
	r.POST("/getOneselfVideo/", getOneselfVideo)
	r.POST("/video/upload/", upLoadVideo)
	r.DELETE("/video/delete/:av", deleteVideo)
	r.POST("/getComment/", getComments)
	r.POST("/giveComment/", giveComment)
	r.POST("/givefavorites/", giveFavorites)
	r.POST("/giveLikes/", giveLikes)
	r.POST("/wathcVideo/", WatchedVideo)
}
